package pojo;

public class Student {
    private String id;
    private String name;
    public Student(String id,String name)
    {
        this.id=id;
        this.name=name;
    }
    @Override
    public boolean equals(Object obj) {
        if(this==obj)
            return true;
        if(!(obj instanceof Student))
            return false;
        Student stu=(Student) obj;
        boolean s=this.id.equals(stu.id);
        return s;
    }

    @Override
    public int hashCode() {
        return id.hashCode();
    }
}
